<%--
  User: Sujan Kumar Suppala
  Date: Jan 23, 2008
  Time: 6:25:54 PM
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<chiptrack:checkLogon sourcePage="/kitMaking.do?action=BoardMaking" />
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<html>
    <HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
        <META http-equiv=Content-Type content="text/html; charset=windows-1252">
        <LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
    </HEAD>
    <BODY bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" >
    <script src='<%=chipTracContext%>/jsp/includes/scripts/quickSearch.js'></script>
    <SCRIPT language="JavaScript">
    window.onload=init;

    function init()
    {
        qs_1 = new QuickSearch(document.waferStartReportForm['fabProcessStepId'], document.waferStartReportForm.qs1, false);
    }
    function submitForm()
    {
        var form = document.waferStartReportForm;
        var newWindow;
        var url = '<%=chipTracContext%>/waferStartReportAction.do?action=generateReportXLS&fabProcessStepId=' + form.fabProcessStepId.value;
        newWindow = window.open ( url, 'waferStartReport', 'channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=450,height=150,resizable=yes');
    }
    function resetForm()
    {
        document.waferStartReportForm.reset();
        qs_1.resetQuickSearchCntrl();
    }
    </script>
    <!-- Top Header Start-->
    <%@ include file="/jsp/includes/header.jsp" %>
    <!-- Top Header End-->
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
      <TBODY >
      <TR>
        <TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

        <!-- Side Navigation start -->
        <%@ include file="/jsp/operations/reports_side_menu.jsp" %></TD>
        <!-- end of the side navigations -->

        <TD bgcolor="#ffffff">
        <IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
        <TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
        <TD valign="top" width="100%">

        <IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
        <BR>
        <!-- from here your body starts -->
        <html:form action="/waferStartReportAction" name="waferStartReportForm" type="com.scalar.chiptrack.operations.reports.forms.WaferStartReportForm">
        <input name="action" type="hidden" value="">
        <TABLE width='95%' align=right cellpadding='3' cellspacing='2' border='0' bordercolor='black'>
                <TR><Td colspan='4' class="NArialW" align=center>Wafer Start Report</td></tr>
                <TR><TD colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></TD></TR>
                <tr><td colspan='4' align="left" class='NArialL'>&nbsp;<FONT id="errors" color='FF0000'></font></td></tr>
                <TR><TD colspan='4' id="chiptracErrors"><chiptrack:errors styleClass="NArialL"/></TD></TR>
                <TR><TD colspan='4'><chiptrack:info styleClass="NArialL"/></TD></TR>
                <tr>
                    <td>&nbsp;</td>
                    <td class="NArialL" align="right">Quick Search Part No:</td>
                    <td class="NArialL">
                        <input type="text" name="qs1" class="txfield" size='20' onkeyup='quickSearch(qs_1)'/>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <TR>
                    <td>&nbsp;</td>
                    <TD class='NArialL' align="right">Fab Part Number :</TD>
                    <TD class="NArialL">
                        <html:select property="fabProcessStepId" styleClass="txfield">
                            <html:option value="0">All Part Numbers</html:option>
                            <html:options collection="fabPartNumbers" property="value" labelProperty="label"/>
                        </html:select>
                    </TD>
                    <td>&nbsp;</td>
                </TR>
                <TR><TD colspan='4'>
                    <IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='20'>
                </TD></TR>
                <tr>
                    <td colspan="4" align="center">
                        <chiptrack:restrictedLink functionality='<%=Functionality.WAFER_START_REPORT%>' styleClass="leftsection" href="javascript:submitForm();" onmouseover="window.status='Click here to Generate Report';return true" onmouseout="window.status='';return true">
                        <img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"></chiptrack:restrictedLink>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="javascript:resetForm();" onMouseOver="window.status='Click to Reset';return true" onMouseOut="window.status='';return true" title="Click here to Reset">
                            <img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17">
                        </a>
                    </td>
                </tr>
        </table>
        </html:form>
        <!-- till here -->
        <BR><BR><BR>

        </TD>
        <TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
        </TR>
        </TBODY>
        </TABLE>
        <!-- Footer starts here -->
        <%@ include file="/jsp/includes/footer.jsp" %>
        <!-- footer end here -->
    </body>
</html>